from hdc import Hdc

def INJECT_HDC_DEVICE(func):
    def wrapper(cls, hdc: Hdc, device_id: str = "", *args, **kwargs):
        instance = cls.__new__(cls)
        instance.hdc = hdc
        instance.device_id = device_id
        instance.__init__(*args, **kwargs)
        return instance
    return wrapper